
#ifndef _SOUNDMANAGER_H_
#define _SOUNDMANAGER_H_

#include <cstdlib>
#include <map>

#include "common.h"
#include "SDL.h"
#include "SDL_mixer.h"

__BEGIN_NAMESPACE_DECL_ 

class SoundManager
{
    public:
        // Constructor & Destructor
        SoundManager ();
        ~SoundManager ();

        static SoundManager& getInstance();
        bool Load (const char *filename, const char *sample_name);
        bool Play (const char *sample_name);

    private:
        static SoundManager* _instance;
        std::map<std::string, Mix_Chunk *> _samplesMap;
        bool _enabled;
};

__END_NAMESPACE_DECL_

#endif
